const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userInfo: state => state.user.userInfo,
  userId: state => state.user.userInfo.data ? state.user.userInfo.data.id : '',
  avatar: state => state.user.userInfo.data ? state.user.userInfo.data.image : '',
  name: state => state.user.userInfo.data ? state.user.userInfo.data.username : ''
}
export default getters
